package com.lgc.provider01.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author lvguangchun
 * @email lvguangchun@konka.com
 * @date 2022-09-05 14:37
 */

@Data
@Builder
@TableName("product")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "product" , description = "产品实体类")
@Accessors(chain = true)
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "ID")
    private Integer id;

    /**
     * 商品名
     */
    @ApiModelProperty(notes = "商品名称")
    private String name;

    /**
     * 库存
     */
    @ApiModelProperty(notes = "商品库存数量")
    private Integer leftNum;
}

